package com.sams.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sams.entity.School;

public interface SchoolService {
	public int add(School stu) throws Exception;
	public int delete(int id);
	public PageInfo<School> listSchool(int currentPage,String name);
	
	public  School findById(int id);
	public boolean importSchool(String path);
	public int update(School stu);
	public int updateStatus(Integer id, Integer status);
	public School selectByName(String name, Integer status);
	public List<School> listAllSchool();
	public boolean insertBatch(List<School> schoolList) throws Exception;
	public boolean validate(String schoolName ,String level);
	public School getSchoolByName(String schoolName ,String xueduan);
	/**
	 * 根据选择的乡镇id 查询它下面的所属学校
	 * @param zid
	 * @return
	 */
	List<School> selectSchoolByZid(Integer zid);
}
